home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000091_fdc@columbia.edu_Wed Jan 28 11:54:35 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Path: newsmaster.cc.columbia.edu!not-for-mail
  2. From: Frank da Cruz <fdc@columbia.edu>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Help with a script
  5. Date: 28 Jan 2004 16:50:41 GMT
  6. Organization: Columbia University
  7. Lines: 56
  8. Message-ID: <slrnc1fq31.c5n.fdc@sesame.cc.columbia.edu>
  9. References: <6b84683a.0401271212.4059fe85@posting.google.com> <deb126db.0401272157.32647b1b@posting.google.com> <6b84683a.0401280726.24b3edfb@posting.google.com>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: sesame.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1075308641 13695 128.59.59.56 (28 Jan 2004 16:50:41 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 28 Jan 2004 16:50:41 GMT
  15. User-Agent: slrn/0.9.7.4 (SunOS)
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14791
  17.  
  18. In article <6b84683a.0401280726.24b3edfb@posting.google.com>, EBH wrote:
  19. : slash_dev_slash_null_2000@yahoo.com (Mark Sapiro) wrote
  20. : in message news:<deb126db.0401272157.32647b1b@posting.google.com>...
  21. : ...
  22. :> You might also be able to use Kermit's autodownload/autoupload
  23. :> features to bypass the user's need to escape to command mode.  In this
  24. :> case, if the remote host attemps to "send" or "get" a file to/from the
  25. :> local Kermit, the local Kermit will switch from connect mode to server
  26. :> mode automatically to receive/send the file(s).
  27. :> 
  28. : After posting posting the I actually found this feature and I tried it
  29. : but it only worked when the remote tried to "send" a file. When it
  30. : tried to "get" a file it didn't and I suspect it has something to do
  31. : with the file name.
  32. :
  33. It should work with GET too, if the name or wildcard given matches one or
  34. more files in the user's current directory, and/or includes a proper
  35. pathname identifying the file.
  36.  
  37. : The remote is giving the received file some name
  38. : over which I have no control (and I don't know the algorithm either so
  39. : that I can name my file the same), and without me actually escaping
  40. : back and explicitily sending my file it just won't work.
  41. Then I take the remote is not a real Kermit program?  And it is not
  42. really doing an active GET but a passive RECEIVE?
  43.  
  44. : So I guess the real question when I use the autodownload/autoupload
  45. : feature how can I preset the file names fir the upload and/or download
  46. Anything can be done, but this question is a bit to vague to answer
  47. precisely.  I'd need to know more about what's on the far end, and what
  48. exactly is it doing?  If it's doing a GET, this should work.  If it's
  49. renaming the file the file it receives, there's nothing you can do about
  50. that in your script.  If it's asking for a file you don't have, maybe
  51. there might be a way to "edit" the name before searching for the file;
  52. I'd have to think about it.
  53.  
  54. If it's doing a passive RECEIVE rather than a GET, then I would assume
  55. it prints some kind of message first, telling the user what to do.
  56. In that case you can use CONNECT /TRIGGER:<text> to have Kermit watch
  57. for that string during the CONNECT session; when the string appears,
  58. control automatically reverts to the your script.
  59.  
  60. :>   connect
  61. :>   if not open connection exit   ; or end as appropriate
  62. : This didn't work as described, but I think this is more an issue with
  63. : the remote, I will need to follow-up with them.
  64. The more information you give us, the more we can help.  Like, what kind
  65. of connection is it?  Kermit can and will detect broken connections under
  66. most circumstances.  There are exceptions, but instead of listing them,
  67. just tell us what kind of connection you have and we can comment.
  68.  
  69. - Frank
  70.